package com.zjj.pojo;

/**
 * 学生类
 */
public class Student {
    private int sno;// 学号
    private String sname; // 学生姓名
    private String major; // 专业

    public Student(int sno, String sname, String major) {
        this.sno = sno;
        this.sname = sname;
        this.major = major;
    }

    public Student(String sname, String major) {
        this.sname = sname;
        this.major = major;
    }

    public Student() {
    }




    public int getSno() {
        return sno;
    }

    public void setSno(int sid) {
        this.sno = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sno=" + sno +
                ", sname='" + sname + '\'' +
                ", major='" + major + '\'' +
                '}';
    }
}
